package com.centit.suixuan.puremvc
{
	import org.puremvc.as3.interfaces.IFacade;
	import org.puremvc.as3.patterns.facade.Facade;
	import com.centit.suixuan.puremvc.controller.LoginCommand;

	public class AppFacade extends Facade implements IFacade
	{
		public static const APP_STARTUP:String = "app_startup";
		public function AppFacade()
		{
		}
		
		
		public static function getInstance() : AppFacade{
			if(null == instance){
				instance = new AppFacade();
			}
			
			return instance as AppFacade;
		}
		
		override protected function initializeController():void{
			super.initializeController();
			//register some Commands
			registerCommand(APP_STARTUP,LoginCommand);
			
			
		}
		
		public function start(app : Object) : void{
			super.sendNotification(APP_STARTUP, app);
			
			
		}
	}
}